<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php
		$baseScriptUrl = Yii::app()->assetManager->publish(dirname(__FILE__) . '/../../wwwroot');
		Yii::app()->getClientScript()->registerCssFile($baseScriptUrl.'/css/bootstrap.min.css');
		Yii::app()->getClientScript()->registerCssFile($baseScriptUrl.'/css/main.css');
	?>
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/css/bootstrap.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/css/responsive.css" media="print" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/css/main.css"/>
	
	<!-- blueprint CSS framework -->
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/jquery.min.js">	</script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/bootstrap.min.js">	</script>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_FRONTEND; ?>/js/main.js">	</script>
</head>
<body>
<div class="container">
	<?php
		$roles=Rights::getAssignedRoles(Yii::app()->user->Id);
		$roleName = "";
		foreach($roles as $role)
			$roleName = $role->name;
	?>
	<ul id="left-menu">
		<li id="back"><a href="#"></a></li>
		<li id="setting"><a href="#"></a></li>
		<li id="faqs"><a href="#"></a></li>
		<li id="g"><a href="#"></a></li>
	</ul>
	<div id='header'>
		<div id='logo'>
			<h1>Campaign management </h1>
		</div>
		<div id='header-menu'>
			<div id="header-menu-main" class='header-menu-items'>
				<a href="/">Main</a>
			</div>
			<div id="header-menu-your-campaigns" class='header-menu-items'>
			<?php if($roleName != 'Viewer') { ?>
				<a href="#">Your campaigns</a>
			<?php } ?>
			</div>
			<div id="header-menu-new-campaigns" class='header-menu-items'>
			<?php if($roleName != 'Viewer') { ?>
				<a href="#">New campaigns</a>
			<?php } ?>
			</div>
			<div id="header-menu-statistics" class='header-menu-items'>
				<a href="/statistics">Statistics</a>
			</div>
		
			<div id="header-menu-helpdesk" class='header-menu-items'>
				<a href="#">Helpdesk</br><span>15 new messages</span></a>
			</div>
			<div id="header-menu-campaign-alert" class='header-menu-items'>
				<a href="#">Campaign alert</a>
			</div>
		</div>
	</div>
	<div id='content-container'>
		<?php echo $content; ?>
	</div>
</div>
</body>
</html>
